package com.xinyu.service.impl;

import com.xinyu.domain.TaskStateHistory;
import com.xinyu.mapper.TaskStateHistoryMapper;
import com.xinyu.service.TaskStateHistoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author XinYu
 * @since 2025-03-26
 */
@Service
public class TaskStateHistoryServiceImpl extends ServiceImpl<TaskStateHistoryMapper, TaskStateHistory> implements TaskStateHistoryService {

    @Autowired
    private TaskStateHistoryMapper taskStateHistoryMapper;

    public List<TaskStateHistory> getHistoryWithUserByTaskId(Integer taskId) {
        return taskStateHistoryMapper.selectByTaskIdWithUser(taskId);
    }


}
